# coding: utf-8

from . import api
from app import db
import logging
from flask import current_app

@api.route("/index")
def index():
    #
    # logging.error("sfthds")  # 错误级别
    # logging.warn(" ")    # 警告级别
    # logging.info(" ")    # 消息提示级别
    # logging.debug(" ")   # 调试错误

    current_app.logger.error("err msg")
    current_app.logger.warn("warn msg")
    current_app.logger.info("info msg")
    current_app.logger.debug("debug msg")

    return "index page"